<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ChompBombs:  Fichier source de /home/etu/c/p1006411/chompbombs/src/bombe.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ChompBombs</div>
   <div id="projectbrief">Jeu_de_Bomberman</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/home/etu/c/p1006411/chompbombs/src/bombe.h</h1>  </div>
</div>
<div class="contents">
<a href="bombe_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef _BOMBE_H</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define _BOMBE_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="terrain_8h.html" title="module de gestion du terrain">terrain.h</a>&quot;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 
<a name="l00018"></a><a class="code" href="structbombe.html">00018</a> <span class="keyword">struct </span><a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a> {
<a name="l00019"></a><a class="code" href="structbombe.html#acbc116f3fce84b2ef285158534e40b6b">00019</a>     <span class="keywordtype">int</span> <a class="code" href="structbombe.html#acbc116f3fce84b2ef285158534e40b6b">x</a>;
<a name="l00020"></a><a class="code" href="structbombe.html#a820c6965f94fb4d83d3ef78ac4579407">00020</a>     <span class="keywordtype">int</span> <a class="code" href="structbombe.html#a820c6965f94fb4d83d3ef78ac4579407">y</a>;
<a name="l00021"></a><a class="code" href="structbombe.html#a667f9faf84deb0f618c8393fb4611d7c">00021</a>     <span class="keywordtype">int</span> <a class="code" href="structbombe.html#a667f9faf84deb0f618c8393fb4611d7c">puissance</a>;
<a name="l00022"></a><a class="code" href="structbombe.html#a1edb5090f13cd274afa1afb34d7ca0d0">00022</a>     clock_t <a class="code" href="structbombe.html#a1edb5090f13cd274afa1afb34d7ca0d0">heureInit</a>;
<a name="l00023"></a><a class="code" href="structbombe.html#aee15682ddf256cb047e0c374787c4ddc">00023</a>     <span class="keywordtype">int</span> <a class="code" href="structbombe.html#aee15682ddf256cb047e0c374787c4ddc">joueur</a>;
<a name="l00024"></a><a class="code" href="bombe_8h.html#adf591d0daa60fc379a33f68c57269b6b">00024</a> }; <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a> <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>;
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>* <a class="code" href="bombe_8c.html#aee92cb412ee8dd026bf3448a163c7523">bombeInit</a>(<a class="code" href="structterrain.html" title="contient la taille, des tableaux de bombes, de gestion d&amp;#39;ennemis, et de sa forme">terrain</a>* ter, <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structbombe.html#acbc116f3fce84b2ef285158534e40b6b">x</a>, <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structbombe.html#a820c6965f94fb4d83d3ef78ac4579407">y</a>, <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structbombe.html#a667f9faf84deb0f618c8393fb4611d7c">puissance</a>, <span class="keyword">const</span> <span class="keywordtype">int</span> numJoueur);
<a name="l00027"></a>00027 
<a name="l00033"></a>00033 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="bombe_8c.html#a3570137384c17e890320a6c705b2d9f1" title="récupère coordonnée X d&amp;#39;une bombe">bombeGetX</a>(<span class="keyword">const</span> <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>* <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>);
<a name="l00034"></a>00034 
<a name="l00040"></a>00040 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="bombe_8c.html#ab5c2f08f0158c68727846d1366091884" title="récupère coordonnée Y d&amp;#39;une bombe">bombeGetY</a>(<span class="keyword">const</span> <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>* <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>);
<a name="l00041"></a>00041 
<a name="l00047"></a>00047 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="bombe_8c.html#aa1d50c5d1550cd99532a2564e9d1d050" title="récupère puissance d&amp;#39;une bombe">bombeGetPuissance</a>(<span class="keyword">const</span> <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>* <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>);
<a name="l00048"></a>00048 
<a name="l00054"></a>00054 <span class="keyword">const</span> time_t <a class="code" href="bombe_8c.html#a9d76529af8a8c7a6635651cf6837432c" title="récupère heure d&amp;#39;initialisation d&amp;#39;une bombe">bombeGetHeureInit</a>(<span class="keyword">const</span> <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>* <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>);
<a name="l00055"></a>00055 
<a name="l00062"></a>00062 <span class="keywordtype">void</span> <a class="code" href="bombe_8c.html#a3e6b063938ba13fdb1d127acb66232e4" title="affiche une bombe sur un terrain">bombeAffiche</a>(<span class="keyword">const</span> <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>* <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>, <a class="code" href="structterrain.html" title="contient la taille, des tableaux de bombes, de gestion d&amp;#39;ennemis, et de sa forme">terrain</a>* ter);
<a name="l00063"></a>00063 <span class="keywordtype">int</span> <a class="code" href="bombe_8c.html#a57de9b210275cc402d8e0ccafebafd69">bombeExplose</a>(<a class="code" href="structterrain.html" title="contient la taille, des tableaux de bombes, de gestion d&amp;#39;ennemis, et de sa forme">terrain</a>* ter, <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>* <a class="code" href="structbombe.html" title="contient les coordonnées, la puissance et l&amp;#39;heure d&amp;#39;initialisation de la bombe">bombe</a>, <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structbombe.html#acbc116f3fce84b2ef285158534e40b6b">x</a>, <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structbombe.html#a820c6965f94fb4d83d3ef78ac4579407">y</a>);
<a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="bombe_8c.html#a42e087e4ca42d11cba055186b2540b5b">bombeLibere</a>(<a class="code" href="structterrain.html" title="contient la taille, des tableaux de bombes, de gestion d&amp;#39;ennemis, et de sa forme">terrain</a>* ter, <span class="keyword">const</span> <span class="keywordtype">int</span> i);
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définition de type</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Généré le Thu Jun 7 2012 15:48:57 pour ChompBombs par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
